﻿@{
    Layout = null;
}
@*物流库存统计*@
<script src="~/Scripts/MGJJS/FleeGoods/lnventoryStatistics.js"></script>
<div class="mtlr15">
    <div class="row">
        <div class="col-lg-5 col-md-5 col-sm-5 col-lg-offset-7 col-md-offset-7 col-sm-offset-7">
            <div class="input-group">
                <span class="input-group-addon" style="padding:0;border:none">
                    <select style="height:32px;" class="btn btn-default" id="Etype" onchange="$.MGJ.lnventoryStatistics.DropDownListSelect(this)">
                        <option value="">请选择</option>
                    </select>
                </span>
                <input id="Ssearch" type="text" class="form-control" placeholder="产品名称" onkeydown="if (event.keyCode == 13) { $.MGJ.lnventoryStatistics.Ajax_GetEntepriseWareHouseList(); }">
                <span class="input-group-addon" onclick="$.MGJ.lnventoryStatistics.Ajax_GetEntepriseWareHouseList();">
                    <span class="glyphicon glyphicon-search"></span>
                </span>
            </div>
        </div>
    </div>
    <div id="Table">
        <div class="overflow">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th>所属机构</th>
                        <th>产品名称</th>
                        <th>仓库</th>
                        <th>入库数量</th>
                        <th>已发数量</th>
                        <th>退货数量</th>
                        <th>调出数量</th>
                        <th>调入数量</th>
                        @*<th>操作</th>*@
                    </tr>
                </thead>
                <tbody id="tableList" style="display:none;" binding="{'pageId':'ShoppingPager','pageCallback':'$.MGJ.lnventoryStatistics.Ajax_GetInfo','emptyHtml':OMID_EmptyHtml}">
                    <tr>
                        <td binding="{'text':'EnterpriseName','title':'EnterpriseName'}"></td>
                        <td binding="{'text':'ProductName','title':'ProductName'}"></td>
                        <td binding="{'text':'WarehouseName','title':'WarehouseName'}"></td>
                        <td binding="{'text':'inwarehouse'}"></td>
                        <td binding="{'text':'outwarehouse'}"></td>
                        <td binding="{'text':'productreturn'}"></td>
                        <td binding="{'text':'outallot'}"></td>
                        <td binding="{'text':'inallot'}"></td>
                        @*<td>
                            <a onclick="$.MGJ.lnventoryStatistics.Dialog_ShowData()">详细数据</a>
                        </td>*@
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="ShoppingPager"></div>
    </div>
</div>

<script>
    var ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
    window.OMID_EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';
    $(function () {
        $.MGJ.lnventoryStatistics.Ajax_GetEntepriseWareHouseList();
        //$.MGJ.lnventoryStatistics.Ajax_GetInfo(1);
    });
</script>



